<link href="../../../public/stylesheets/main.css" rel="stylesheet" type="text/css" /> 
#{extends 'main.html' /} 
#{set title:'Portal Administrador - Buscar Aula' /} 
 
<div id="container"> 
 
        <!-- Page header --> 
        <div id="header"> 
                <h1>SIGCFC </h1> 
        </div> 
 
        <div id="content_wrap"> 
                <!-- Navigation --> 
                <div id="nav"> 
                  <ul>   
                   
                        <li> 
                                #{a @Application.portalAdministrador()}Portal Administrador#{/a} 
                        </li>                    
                        </BR> 
                        <center>Aula</center> 
                        <li>
							#{a @AulaMBean.inserirAula()}Cadastrar Aula#{/a}
						</li>
						<li>
							#{a @AulaMBean.actionListarAula()}Listar Aula#{/a}
						</li>
						<li>
							#{a @AulaMBean.buscarAula()}Buscar Aula #{/a}
						</li>                                                    
                  </ul> 
                </div> 
 
                <div id="main"> 
                        <center><h1>Buscar Aula da Disciplina</h1></center> 
                        #{form @AulaMBean.actionBuscarListaAula()} 
                        <center>                                         
                        Disciplina: 
                        <input type="text" size="9" name="codDisc" id="codDisc" value="${codDisc}" maxlength="10"/> 
                        <input type="submit" value="Buscar"/> 
                         
                  		</center> 
                        #{/form} 
 
              #{if aulas!=null}            
		<center><p style="color:#c00"> ${retorno} </p></center>
			<center><h1><strong>Lista de Aulas</strong></h1>
	          <table width="542" border="0">
                <tr>
                  <th width="84" scope="row"><div align="center"><strong>Disciplina</strong></div></th>
                  <td width="73"><div align="center"><strong>Data</strong></div></td>
                  <td width="90"><div align="center"><strong>Hora Início</strong></div></td>
                  <td width="84"><div align="center"><strong>Hora Fim</strong></div></td>
                  <td width="120">&nbsp;</td>
                  <td width="65">&nbsp;</td>
                </tr>
              </table>
	  </center>
            <table width="540" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#000000" bgcolor="#FFFFFF">
              #{list items:aulas, as:'Aula'}
	              <tr align="center">
	      			<td width="102" valign="top" nowrap="nowrap"><span class="style3"> ${Aula.codDisc} </span></td>
	                <td width="107" valign="top" nowrap="nowrap"><span class="style3"> ${Aula.data} </span></td>
	                <td width="128" valign="top" nowrap="nowrap"><span class="style3"> ${Aula.horaInicio} </span></td>
	                <td width="100" valign="top" nowrap="nowrap"><span class="style3">${Aula.horaFim}</span></td>
	                
	                 #{form @AulaMBean.editar(Aula.idAula)} 
	                	<td width="150" valign="top" nowrap="nowrap"><div align="center">
	                  		<input type="submit" value="Editar"/> 
	                	</div></td> 
	                #{/form} 
	                 
	                #{form @AulaMBean.actionRemover(Aula.idAula)} 
	                 	<td width="85" valign="top" onclick = "return confirmaExcluir()" nowrap="nowrap">
	                		<input type="submit" value="Remover"/>
	                	</td> 
	                #{/form}   
                </tr>
              #{/list}
            </table>
      </center>
      
      #{/if}
	  </BR>
	  </BR>						
			
	  <div class="brclear"></div>
		</div>
	</div>
  <div id="footer">Sistema de Gestão para Centro de Formação de Condutores<br>TecByte</div>

</div>

<style type="text/css">
body {
	color: #FFFFFF;
}
